package com.xiaotao.mapper;

import com.xiaotao.entity.Good;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodMapper {
    List<Good> findALL();

    Good findById(Integer id);
    void batchUpdateBook(@Param("goodList") List<Good> goodList);

    List<Good> findGoodByIds(@Param("ids") List<Integer> ids);

    Integer updateBuyNum(Good good);
}
